package com.zhang.yygh.cmn.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-cmn")
public interface DictFeignClient {

    //1.根据省、市、区编号查询对应的地址信息
    @GetMapping("/admin/cmn/dict/getName/{value}")
    public String getAddressNameByValue(@PathVariable(value = "value") Long value);

    //2.根据医院等级编号和hoscode查询医院等级信息
    @GetMapping("/admin/cmn/dict/getName/{dictcode}/{value}")
    public String getAddressNameByValue(@PathVariable(value = "dictcode") String dictcode,
                                        @PathVariable(value = "value") Long value);
}
